package com.cloudcross.ssp.service;

import java.util.List;

import com.cloudcross.ssp.common.utils.Pager;
import com.cloudcross.ssp.model.SysMail;
import com.cloudcross.ssp.model.SysMailRead;

public interface ISysMailService {
    boolean insertSysMail(SysMail sysMail);

    boolean insertSysMailRead(SysMailRead sysMailRead);

    boolean insertSysMailReadBetch(List<Long> sysMaiIdList, Long accountId);

    List<SysMail> querySysMailByAccountId(Long accountId, int type, Pager pager);

    int querySysMailCountByAccountId(Long accountId, int type);

    int querySysMailUnRead(Long accountId, int type);
}
